<html>
<head><meta charset="utf-8"><title>More rdj duplication · rustdoc · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/index.html">rustdoc</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/More.20rdj.20duplication.html">More rdj duplication</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="232658970"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/More%20rdj%20duplication/near/232658970" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Nixon Enraght-Moony <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/More.20rdj.20duplication.html#232658970">(Mar 31 2021 at 20:22)</a>:</h4>
<p>So I went over an ran rustdoc-json on all the crates you can run in rustdoc (<a href="https://codeberg.org/adot/cheep-crator">link</a>) and found 2 new issues</p>
<ul>
<li><a href="https://github.com/rust-lang/rust/issues/83720">one</a> I completely understand (and can explain if you dont) but am not sure what the corrent thing to do is. <span class="user-mention" data-user-id="319144">@CraftSpider</span>  would love design input</li>
<li><a href="https://github.com/rust-lang/rust/issues/83718">the other</a> I have no idea whats happing, and am extremely scared by as it makes literaly no sence to me how changing unrelated code can remove it</li>
</ul>
<p>Would love input on either</p>



<a name="232659450"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/More%20rdj%20duplication/near/232659450" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/More.20rdj.20duplication.html#232659450">(Mar 31 2021 at 20:26)</a>:</h4>
<blockquote>
<p>the other I have no idea whats happing, and am extremely scared by as it makes literaly no sence to me how changing unrelated code can remove it</p>
</blockquote>
<p>I bet this has to do with the generic parameters somehow</p>



<a name="232659476"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/More%20rdj%20duplication/near/232659476" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/More.20rdj.20duplication.html#232659476">(Mar 31 2021 at 20:26)</a>:</h4>
<p>I want to simplify it a bit before looking at it too much</p>



<a name="232661011"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/More%20rdj%20duplication/near/232661011" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/More.20rdj.20duplication.html#232661011">(Mar 31 2021 at 20:36)</a>:</h4>
<p><span class="user-mention" data-user-id="268539">@Nixon Enraght-Moony</span> how did you get that pretty diff output?</p>



<a name="232661467"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/More%20rdj%20duplication/near/232661467" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/More.20rdj.20duplication.html#232661467">(Mar 31 2021 at 20:39)</a>:</h4>
<p><span class="user-mention" data-user-id="268539">@Nixon Enraght-Moony</span> I think it's because the trait declaration and the function in the implementation have the same name. This crashes:</p>
<div class="codehilite" data-code-language="Rust"><pre><span></span><code><span class="k">pub</span><span class="w"> </span><span class="k">trait</span><span class="w"> </span><span class="n">Get</span><span class="w"> </span><span class="p">{}</span><span class="w"></span>

<span class="k">pub</span><span class="w"> </span><span class="k">trait</span><span class="w"> </span><span class="n">Load</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
<span class="w">    </span><span class="k">fn</span> <span class="nf">load</span><span class="p">()</span><span class="w"> </span><span class="p">{}</span><span class="w"></span>
<span class="p">}</span><span class="w"></span>

<span class="k">impl</span><span class="o">&lt;</span><span class="n">P</span>: <span class="nc">Get</span><span class="o">&gt;</span><span class="w"> </span><span class="n">Load</span><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="n">P</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
<span class="w">    </span><span class="k">fn</span> <span class="nf">load</span><span class="p">()</span><span class="w"> </span><span class="p">{}</span><span class="w"></span>
<span class="p">}</span><span class="w"></span>

<span class="k">pub</span><span class="w"> </span><span class="k">struct</span> <span class="nc">Wrapper</span><span class="o">&lt;</span><span class="n">T</span><span class="o">&gt;</span><span class="p">(</span><span class="n">T</span><span class="p">);</span><span class="w"></span>
<span class="k">impl</span><span class="w"> </span><span class="n">Get</span><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="n">Wrapper</span><span class="o">&lt;</span><span class="kt">usize</span><span class="o">&gt;</span><span class="w"> </span><span class="p">{}</span><span class="w"></span>
</code></pre></div>
<p>but this does not:</p>
<div class="codehilite" data-code-language="Rust"><pre><span></span><code><span class="k">pub</span><span class="w"> </span><span class="k">trait</span><span class="w"> </span><span class="n">Get</span><span class="w"> </span><span class="p">{}</span><span class="w"></span>

<span class="k">pub</span><span class="w"> </span><span class="k">trait</span><span class="w"> </span><span class="n">Load</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
<span class="w">    </span><span class="k">fn</span> <span class="nf">load</span><span class="p">()</span><span class="w"> </span><span class="p">{}</span><span class="w"></span>
<span class="p">}</span><span class="w"></span>

<span class="k">impl</span><span class="o">&lt;</span><span class="n">P</span>: <span class="nc">Get</span><span class="o">&gt;</span><span class="w"> </span><span class="n">Load</span><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="n">P</span><span class="w"> </span><span class="p">{}</span><span class="w"></span>

<span class="k">pub</span><span class="w"> </span><span class="k">struct</span> <span class="nc">Wrapper</span><span class="o">&lt;</span><span class="n">T</span><span class="o">&gt;</span><span class="p">(</span><span class="n">T</span><span class="p">);</span><span class="w"></span>
<span class="k">impl</span><span class="w"> </span><span class="n">Get</span><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="n">Wrapper</span><span class="o">&lt;</span><span class="kt">usize</span><span class="o">&gt;</span><span class="w"> </span><span class="p">{}</span><span class="w"></span>
</code></pre></div>



<a name="232661716"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/More%20rdj%20duplication/near/232661716" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/More.20rdj.20duplication.html#232661716">(Mar 31 2021 at 20:41)</a>:</h4>
<p>not sure why <code>P: Get</code> is important, but if I remove it and do <code>impl Load for Wrapper</code> directly the crash goes away</p>



<a name="232661882"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/More%20rdj%20duplication/near/232661882" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/More.20rdj.20duplication.html#232661882">(Mar 31 2021 at 20:42)</a>:</h4>
<p>ooh and one has <code>output: None</code> while the other has <code>output: Some(Tuple([]))</code> - I bet one is going through HIR and the other is going through metadata, that could explain why the generic parameter matters</p>



<a name="232661966"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/More%20rdj%20duplication/near/232661966" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Nixon Enraght-Moony <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/More.20rdj.20duplication.html#232661966">(Mar 31 2021 at 20:43)</a>:</h4>
<p><span class="user-mention silent" data-user-id="232545">Joshua Nelson</span> <a href="#narrow/stream/266220-rustdoc/topic/More.20rdj.20duplication/near/232661011">said</a>:</p>
<blockquote>
<p><span class="user-mention silent" data-user-id="268539">Nixon Enraght-Moony</span> how did you get that pretty diff output?</p>
</blockquote>
<p><a href="https://docs.rs/pretty_assertions">https://docs.rs/pretty_assertions</a></p>



<a name="232662020"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/More%20rdj%20duplication/near/232662020" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/More.20rdj.20duplication.html#232662020">(Mar 31 2021 at 20:43)</a>:</h4>
<p><span class="user-mention silent" data-user-id="232545">Joshua Nelson</span> <a href="#narrow/stream/266220-rustdoc/topic/More.20rdj.20duplication/near/232661716">said</a>:</p>
<blockquote>
<p>not sure why <code>P: Get</code> is important, but if I remove it and do <code>impl Load for Wrapper</code> directly the crash goes away</p>
</blockquote>
<p>yeah it doesn't need the <code>P: Get</code> bound, just for P to be generic</p>



<a name="232662127"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/More%20rdj%20duplication/near/232662127" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/More.20rdj.20duplication.html#232662127">(Mar 31 2021 at 20:44)</a>:</h4>
<p>mcve:</p>
<div class="codehilite" data-code-language="Rust"><pre><span></span><code><span class="k">pub</span><span class="w"> </span><span class="k">trait</span><span class="w"> </span><span class="n">Load</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
<span class="w">    </span><span class="k">fn</span> <span class="nf">load</span><span class="p">()</span><span class="w"> </span><span class="p">{}</span><span class="w"></span>
<span class="p">}</span><span class="w"></span>

<span class="k">impl</span><span class="o">&lt;</span><span class="n">P</span><span class="o">&gt;</span><span class="w"> </span><span class="n">Load</span><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="n">P</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
<span class="w">    </span><span class="k">fn</span> <span class="nf">load</span><span class="p">()</span><span class="w"> </span><span class="p">{}</span><span class="w"></span>
<span class="p">}</span><span class="w"></span>

<span class="k">pub</span><span class="w"> </span><span class="k">struct</span> <span class="nc">Wrapper</span><span class="w"> </span><span class="p">{}</span><span class="w"></span>
</code></pre></div>



<a name="232662393"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/More%20rdj%20duplication/near/232662393" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/More.20rdj.20duplication.html#232662393">(Mar 31 2021 at 20:46)</a>:</h4>
<p>left a comment on the issue (nothing that's not here)</p>



<a name="232662964"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/More%20rdj%20duplication/near/232662964" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/More.20rdj.20duplication.html#232662964">(Mar 31 2021 at 20:50)</a>:</h4>
<blockquote>
<p>It's unlear to me what the correct representation should be, as currently for items pub used from a non pub mod, we add the item to the mod it's being imported to, with the name it's imported under.</p>
</blockquote>
<p><del>json ids</del> <a href="https://github.com/rust-lang/rust/issues/80664#issuecomment-753681341">https://github.com/rust-lang/rust/issues/80664#issuecomment-753681341</a></p>



<a name="232663627"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/More%20rdj%20duplication/near/232663627" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Nixon Enraght-Moony <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/More.20rdj.20duplication.html#232663627">(Mar 31 2021 at 20:55)</a>:</h4>
<p>What does new ids do for this. Are you proposing that we just put it in the index twice, with a diffent name (and new json-id), but the same everthing else? Because I think that we want to somewhow indicate that these are the same underlying type.</p>



<a name="232663981"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/More%20rdj%20duplication/near/232663981" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/More.20rdj.20duplication.html#232663981">(Mar 31 2021 at 20:58)</a>:</h4>
<p><span class="user-mention silent" data-user-id="268539">Nixon Enraght-Moony</span> <a href="#narrow/stream/266220-rustdoc/topic/More.20rdj.20duplication/near/232663627">said</a>:</p>
<blockquote>
<p>What does new ids do for this. Are you proposing that we just put it in the index twice, with a diffent name (and new json-id), but the same everthing else?</p>
</blockquote>
<p>Yes, that's what I mean. I don't see another way to keep the info about both re-exports.</p>
<blockquote>
<p>Because I think that we want to somewhow indicate that these are the same underlying type.</p>
</blockquote>
<p>We could add a new <code>original_id</code> field maybe?</p>



<a name="232664065"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/More%20rdj%20duplication/near/232664065" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/More.20rdj.20duplication.html#232664065">(Mar 31 2021 at 20:59)</a>:</h4>
<p>alternatively we could remove re-exports from the index altogether and add a new field that's <em>only</em> re-exports and is keyed by (module, name) instead of id</p>



<a name="232667382"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/More%20rdj%20duplication/near/232667382" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Nixon Enraght-Moony <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/More.20rdj.20duplication.html#232667382">(Mar 31 2021 at 21:23)</a>:</h4>
<p>Yeah, I'm not sure which of these things is better. The both seem quite bad, but I'm not sure good answers exits. I guess my primary consern is that we force consumers to acknoledge that items can have many names. (I thing this is right, as otherwize we'll get tooling that works 99% of the time, but falls down when someone does something weird.)</p>



<a name="232667759"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/More%20rdj%20duplication/near/232667759" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/More.20rdj.20duplication.html#232667759">(Mar 31 2021 at 21:26)</a>:</h4>
<blockquote>
<p>I guess my primary consern is that we force consumers to acknoledge that items can have many names. (I thing this is right, as otherwize we'll get tooling that works 99% of the time, but falls down when someone does something weird.)</p>
</blockquote>
<p>Yeah, I don't see a way around this. The only alternative is to omit the info altogether and only document the first re-export, which seems at least as bad.</p>



<a name="232667769"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/More%20rdj%20duplication/near/232667769" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/More.20rdj.20duplication.html#232667769">(Mar 31 2021 at 21:26)</a>:</h4>
<p>cc <span class="user-mention" data-user-id="229913">@HeroicKatora</span> btw</p>



<a name="232667844"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/More%20rdj%20duplication/near/232667844" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Nixon Enraght-Moony <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/More.20rdj.20duplication.html#232667844">(Mar 31 2021 at 21:27)</a>:</h4>
<p>Doing all this has realy made me appreciate that maybe <code>go</code> was right to have such a simple module system</p>



<a name="232667870"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/More%20rdj%20duplication/near/232667870" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/More.20rdj.20duplication.html#232667870">(Mar 31 2021 at 21:27)</a>:</h4>
<p>how does go's module system work?</p>



<a name="232667910"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/More%20rdj%20duplication/near/232667910" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/More.20rdj.20duplication.html#232667910">(Mar 31 2021 at 21:27)</a>:</h4>
<p>this doesn't seem like a super complicated part to me - it's just allowing renaming</p>



<a name="232668102"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/More%20rdj%20duplication/near/232668102" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Nixon Enraght-Moony <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/More.20rdj.20duplication.html#232668102">(Mar 31 2021 at 21:29)</a>:</h4>
<p><span class="user-mention silent" data-user-id="232545">Joshua Nelson</span> <a href="#narrow/stream/266220-rustdoc/topic/More.20rdj.20duplication/near/232667870">said</a>:</p>
<blockquote>
<p>how does go's module system work?</p>
</blockquote>
<p>No reexports, no renaming, everything in a folder is the same namespace (as opposed to file in rust). No need for <code>mod</code> statements to discover files. No inline modules</p>



<a name="232668171"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/More%20rdj%20duplication/near/232668171" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Nixon Enraght-Moony <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/More.20rdj.20duplication.html#232668171">(Mar 31 2021 at 21:30)</a>:</h4>
<p><span class="user-mention silent" data-user-id="232545">Joshua Nelson</span> <a href="#narrow/stream/266220-rustdoc/topic/More.20rdj.20duplication/near/232667910">said</a>:</p>
<blockquote>
<p>this doesn't seem like a super complicated part to me - it's just allowing renaming</p>
</blockquote>
<p>But the fact that you can have an item with no "canonical" name (esp if both reeexports rename) is super trippy IMO</p>



<a name="232668993"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/More%20rdj%20duplication/near/232668993" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/More.20rdj.20duplication.html#232668993">(Mar 31 2021 at 21:36)</a>:</h4>
<p>oh well good point</p>



<a name="232669037"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/More%20rdj%20duplication/near/232669037" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/More.20rdj.20duplication.html#232669037">(Mar 31 2021 at 21:36)</a>:</h4>
<p>yeah I've been meaning to make an RFC for doc(canonical)</p>



<a name="232669062"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/More%20rdj%20duplication/near/232669062" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/More.20rdj.20duplication.html#232669062">(Mar 31 2021 at 21:36)</a>:</h4>
<p><a href="https://github.com/rust-lang/rfcs/issues/3011">https://github.com/rust-lang/rfcs/issues/3011</a></p>



<a name="232688754"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/More%20rdj%20duplication/near/232688754" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> CraftSpider <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/More.20rdj.20duplication.html#232688754">(Apr 01 2021 at 01:00)</a>:</h4>
<p>The first one definitely looks like custom IDs are needed, or something similar. Personally I lean towards re-exports pointing towards their originator somehow, rather than making them their own field. Though that's more because it's less work and feels more 'consistent' with how most all items are just items currently.</p>



<a name="232688827"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/More%20rdj%20duplication/near/232688827" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> CraftSpider <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/More.20rdj.20duplication.html#232688827">(Apr 01 2021 at 01:00)</a>:</h4>
<p>The second one, oh geez I'll take a look into how it handles the generics</p>



<a name="232688842"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/More%20rdj%20duplication/near/232688842" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/More.20rdj.20duplication.html#232688842">(Apr 01 2021 at 01:00)</a>:</h4>
<p><span class="user-mention silent" data-user-id="319144">CraftSpider</span> <a href="#narrow/stream/266220-rustdoc/topic/More.20rdj.20duplication/near/232688827">said</a>:</p>
<blockquote>
<p>The second one, oh geez I'll take a look into how it handles the generics</p>
</blockquote>
<p>I expect this to be a bug in rustdoc itself FWIW, not in the JSON backend</p>



<a name="232688854"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/More%20rdj%20duplication/near/232688854" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/More.20rdj.20duplication.html#232688854">(Apr 01 2021 at 01:00)</a>:</h4>
<p>happy to help if you get stuck</p>



<a name="232689082"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/More%20rdj%20duplication/near/232689082" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> CraftSpider <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/More.20rdj.20duplication.html#232689082">(Apr 01 2021 at 01:03)</a>:</h4>
<p>Yeah, my suspicion was that I'd start looking at <code>clean</code> to see how rustdoc is getting the information. I'll ask if I run into issues</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>